package com.hnluchuan.bmjlearning.common;

public enum ServicePackageType {
    OFFICIAL(0, "正式型账号", "official"),
    TEST(1, "试用型账号", "test");

    private int value;
    private String remark;
    private String code;

    ServicePackageType(int value, String remark, String code) {
        this.value = value;
        this.remark = remark;
        this.code = code;
    }

    public String getCode(){return code;}

    public int getValue() {
        return value;
    }
     
    public String getRemark() {
        return remark;
    }

    public static ServicePackageType getByValue(int value) {
        for (ServicePackageType o : ServicePackageType.values()) {
            if (o.getValue() == value) {
                return o;
            }
        }
        return null;
    }
  
}
